package com.mihoyo.genshin.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mihoyo.genshin.dao.entity.UserDO;
import com.mihoyo.genshin.dto.req.UserRegisterReqDTO;
import com.mihoyo.genshin.service.UserService;
import com.mihoyo.genshin.dao.mapper.UserMapper;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

/**
* @author koen
*/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, UserDO>
    implements UserService{

	@Override
	public void register(UserRegisterReqDTO requestParam) {
		UserDO userDO = BeanUtil.copyProperties(requestParam, UserDO.class);
		save(userDO);
	}
}




